//
//  DRDeviceCell.m
//  DoctorRen
//
//  Created by Macx on 2018/11/21.
//

#import "DRDeviceCell.h"
@interface DRDeviceCell()

@end
@implementation DRDeviceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}


- (void)willMoveToWindow:(UIWindow *)newWindow{
    [super willMoveToWindow:newWindow];
    [self.readButton addTarget:self action:@selector(clickReadButton) forControlEvents:(UIControlEventTouchUpInside)];
    [self.bindButton addTarget:self action:@selector(clickBindButton) forControlEvents:UIControlEventTouchUpInside];
}


-(void) clickReadButton{
    if (self.readAction) {
        self.readAction();
    }
}

-(void) clickBindButton{
    if (self.bindAction) {
        self.bindAction();
    }
}

@end
